package com.zqweb.gulimall.cart.service;

import com.zqweb.gulimall.cart.vo.CartItemVo;

import java.util.List;
import java.util.concurrent.ExecutionException;

public interface CartService {

    CartItemVo addToCart(Long skuId, int goodsNumber) throws ExecutionException, InterruptedException;

    CartItemVo getCartInfoBySkuId(Long skuId);

    List<CartItemVo> getCartList() throws ExecutionException, InterruptedException;

    Boolean checkItem(Long skuId, int check);

    void itemCountModify(Integer count,Long skuId);

    void deleteCartItem(Long skuId);

    List<CartItemVo> getUserCartItems();


}
